package com.heying.springcore.aop.anno;

import org.springframework.stereotype.Component;

@Component
public class Performer {

    public void perform(int n){
        System.out.println("演员表演");
        if (n<0){
            System.out.println("表演失败");
            throw new IllegalArgumentException("n不可以小于0");
        }
    }
}
